package com.example.rabbitmqdemo.other;

import lombok.extern.slf4j.Slf4j;

/**
 * @author HXB
 * @Title:
 * @Description:
 * @date 2020-04-23 15:15
 */
@Slf4j
public class LogMessageHandler implements MessageHandler {

    @Override
    public boolean handleMessage(String message) {
        log.info("接收到Log成功消息，消息内容:{}",message);
        try {

            // 这里处理具体业务

        } catch (Exception e) {
            log.info("消息处理失败", e);
            return true;
        }
        return false;
    }
}
